package com.project.mapper;

import mvc.core.annotation.Batis;
import mvc.core.annotation.Sql;
import mvc.core.jdbc.Page;
import mvc.core.jdbc.PageData;

/**
 * 数据库操作接口,由动态代理实现
 * 
 * @author liuzy
 * @version 2015年5月14日
 */
@Batis
public interface MyMapper {
	
	@Sql("select * from users where username = ? and password = ?")
	public PageData select(String username, String password, Page page);
	
	@Sql("select * from users")
	public PageData select(Page page);
	
	@Sql("insert into users(username, password) values(?, ?)")
	public Integer insert(String username, String password);
	
}
